/**
 * @Description layout组件相关配置store
 * @Date 2023/5/22 周一 19:12
 * @Author 酷奇 <vx：17685112557>
 */
import { defineStore } from 'pinia'

const useLayoutSetStore = defineStore('SettingStore', {
  state: () => ({
    // 左侧menu菜单是否折叠，默认不折叠
    fold: false,
    // 刷新表格内容
    refresh: false,
  }),
  actions: {
    toggleFold() {
      this.fold = !this.fold
    },
    toggleRefresh() {
      this.refresh = !this.refresh
    },
  },
})

export default useLayoutSetStore
